package com.authine.cloudpivot.ext.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @program: gm-market
 * @description:
 * @author: wlw
 * @create: 2021-08-16 20:08
 **/
@Data
@Schema(description = "CreateOrderDto")
public class CreateOrderDto {
    @Schema(description = "支付方式  Credit-》信用支付")
    private String payment_method;
    @Schema(description = "客户订单号")
    private String erp_po;
    @Schema(description = "收货人")
    private String receiver;
    @Schema(description = "电话")
    private String phone;
    @Schema(description = "邮编")
    private String postal;
    @Schema(description = "详细地址")
    private String address;
    @Schema(description = "可接受最迟交货日")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date accept_delivery_time;
    @Schema(description = "备注")
    private String memo;
    @Schema(description = "商品总件数")
    private Integer goods_num;
    @Schema(description = "商品含税总额")
    private BigDecimal total_amount;
    @Schema(description = "税额")
    private BigDecimal tax_amount;
    @Schema(description = "商品集合")
    private List<GoodsMaterialDto> cartIds;
}
